package com.jgy.utils;

public interface CommonConstants {


    String CAPTCHA_CODE_KEY = "captcha_codes:";


     String USER_TOKEN_UUID = "user_token:";

    /**
     * 自动计算 - 是
     */
    String AUTO_CUL_YES = "1";

    /**
     * 自动计算 - 否
     */
    String AUTO_CUL_NO = "0";

    /**
     * 否
     */
    String STATUS_FALSE = "0";

    /**
     * 是
     */
    String STATUS_TRUE = "1";

    /**
     * 删除
     */
    String STATUS_DEL = "0";

    /**
     * 正常
     */
    String STATUS_NORMAL = "1";

    /**
     * 锁定
     */
    String STATUS_LOCK = "9";

    /**
     * 菜单树根节点
     */
    Integer MENU_TREE_ROOT_ID = -1;

    /**
     * 菜单
     */
    String MENU = "0";

    /**
     * 编码
     */
    String UTF8 = "UTF-8";

    /**
     * JSON 资源
     * JSON 资源
     */
    String CONTENT_TYPE = "application/json; charset=utf-8";

    /**
     * 前端工程名
     */
    String FRONT_END_PROJECT = "";

    /**
     * 后端工程名
     */
    String BACK_END_PROJECT = "";

    /**
     * 成功标记
     */
    Integer SUCCESS = 0;

    /**
     * 成功标记
     */
    String SUCCESS_MSG = "请求成功";

    /**
     * 失败标记
     */
    Integer FAIL = 1;

    /**
     * 鉴权失败标记
     */
    Integer AUTH_FAIL = 2;

    /**
     * 成功标记
     */
    String FAIL_MSG = "请求失败";

    /**
     * 验证码前缀
     */
    String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY_";

    /**
     * 当前页
     */
    String CURRENT = "current";

    String ADD = "新增";
    String DELETE = "删除";
    String UPDATE = "更新";
    String SELECT = "查询";
    String EXPORT = "导出";

    /**
     * size
     */
    String SIZE = "size";

    /**
     * size
     */
    String INITIAL_PWD = "$2a$10$RpFJjxYiXdEsAGnWp/8fsOetMuOON96Ntk/Ym2M/RKRyU0GZseaDC";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * Excel模板类型
     */
    public enum ExcelModelType {

        FAMILY_INFO(0), FAMILY_MEMBER(1), VILLAGE_INFO(2);
        private final int value;

        ExcelModelType(int value) {
            this.value = value;
        }

        public int value() {
            return this.value;
        }
    }

}
